# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer:
pkgname=tepl
pkgver=6.4.0
pkgrel=4
pkgdesc="Text editor product line"
url="https://gitlab.gnome.org/swilmet/tepl"
arch="all"
license="GPL-3.0-or-later"
depends_dev="
	amtk-dev
	glib-dev
	gtk+3.0-dev
	"
makedepends="$depends_dev
	gobject-introspection-dev
	gsettings-desktop-schemas-dev
	gtk-doc
	gtksourceview4-dev
	meson
	vala
	"
checkdepends="xvfb-run"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/tepl/${pkgver%.*}/tepl-$pkgver.tar.xz"

build() {
	abuild-meson \
		. output
	meson compile -C output
}

check() {
	xvfb-run meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
c9c3c720b393ba94d94d58c01f9db72c4713f010551bab31bdfbca6ba416af1c48f1090598f469ce7b41a2ada26fbac4f69632ee411468f3eae84b61b78b60bb  tepl-6.4.0.tar.xz
"
